package com.kele.base.common.exception;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2023/3/28 23:15
 * @Version:
 */
public class AppException extends RuntimeException{

    private String errMessage;

    public AppException() {
        super();
    }

    public AppException(String message) {
        super(message);
        this.errMessage = message;
    }

    public static void cast(String message){
        throw new AppException(message);
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }
}
